#include "ae.h"

#define NET_IP_STR_LEN 46
#define PROTO_IOBUF_LEN (1024 * 16)

struct redisServer {
    int *ipfd;
    aeEventLoop *el;
    char *neterr;
};

extern struct redisServer server;

typedef struct client {
    int argc;
    
} client;

void acceptTcpHandler(aeEventLoop *el, int fd, void *privdata, int mask);

client *createClient(int fd);
void readQueryFromClient(aeEventLoop *el, int fd, void *privdata, int mask);